<!DOCTYPE html>
 <html lang="en">
 <head>
    <meta charset="UTF-8">
    <title>支付宝首页</title>
    <link rel="stylesheet" href="10.30.css">
    
 </head>
 <body>
   <div class="box">
      
        <div class="textBox">
            <span>账密登录</span>
        </div>
        <div class="kuangBox">
         
         <input id="user" placeholder="邮箱/手机号/用户名">
        </div>
        <div class="kuangBox">
          
          <input id="pwd">
        </div>
        <div class="text1">
          <span class="zuo">验证码登录</span>
          <span class="you">忘记密码</span>
        </div>
        <div class="text2">
          <button id="bit"onclick="handlenClick()">登录</button>
        </div>
        
        <div class="text2">
          <span class="zuo">淘宝会员登录</span>
          <span class="you">免费注册</span>
        </div>
        <script>
          bit.addEventListener("click",function () {
              var user = document.getElementById("user");
              var pwd = document.getElementById("pwd");
              if (user.value ==="admin" && pwd.value ==="123") {
                  alert("登录成功");
                  window.location.href="http://47.116.207.219/homePage";
              } else {
                  pwd.value="";
                  alert("账号或密码错误")
                  }
      })
      </script>
   </div>  
   
 </body>
 </html